
import Layout from '@/layout'

export default {
  path: '/goods',
  component: Layout,
  redirect: '/goods/list',
  name: 'goods',
  meta: {
    title: '商品管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/goods/list'),
      name: 'goods_list',
      meta: { title: '商品列表', noCache: true }
    },
    {
      path: 'edit',
      component: () => import('@/views/goods/edit'),
      name: 'goods_edit',
      hidden: true,

      meta: { title: '修改商品', noCache: true }
    },
    {
      path: 'create',
      component: () => import('@/views/goods/create'),
      name: 'goods_create',
      meta: { title: '添加商品', noCache: true }
    },
  ]
}

